class CreateJoinTablePlaylistFavPlaylist < ActiveRecord::Migration[6.1]
  def change
    create_join_table :playlist_favs, :playlists do |t|
      t.index [:playlist_fav_id, :playlist_id], name: :index_pfp_on_playlist_fav_id_and_playlist_id, unique: true
      t.index [:playlist_id, :playlist_fav_id], name: :index_pfp_on_playlist_id_and_playlist_fav_id, unique: true
    end
  end
end
